//
//  WenDaTableViewCell.m
//  JiuJiuShangCheng
//
//  Created by jiujiukeji on 2018/8/3.
//  Copyright © 2018年 jiujiukeji. All rights reserved.
//

#import "WenDaTableViewCell.h"

@implementation WenDaTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUpUI];
    }
    return self;
}
- (void)setUpUI
{
    self.iconImg = [[UIImageView alloc] init];
    _iconImg.image = UIImageNamed(@"daan");
    [_iconImg sizeToFit];
    [self addSubview:_iconImg];
    [_iconImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(rateWidth(70));
        make.top.equalTo(self).offset(rateHeight(10));
    }];
    
    self.textLB = [UILabel labelWithText:@"答案答案答案答案答案答案答案答案答案答案答案答案" textColor:UIColorFromRGB(0x666666) fontSize:13];
    [_textLB sizeToFit];
    _textLB.numberOfLines = 0;
    [self addSubview:_textLB];
    [_textLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self).offset(rateHeight(10));
        make.width.mas_lessThanOrEqualTo(@(rateWidth(600)));
        make.left.equalTo(self.iconImg.mas_right).offset(rateWidth(10));
    }];
    
}

@end
